<?php
namespace App\Traits;

use App\Models\FakeList;

Trait Trait39 {

    public function waterAndElectricityFullYear()
    {
        $data1 = [
            '1' => random_int(2000, 4000),
            '2' => random_int(2000, 4000),
            '3' => random_int(2000, 4000),
            '4' => random_int(2000, 4000),
            '5' => random_int(2000, 4000),
            '6' => random_int(2000, 4000),
            '7' => random_int(2000, 4000),
        ];

        $data2 = [
            '1' => random_int(2000, 4000),
            '2' => random_int(2000, 4000),
            '3' => random_int(2000, 4000),
            '4' => random_int(2000, 4000),
            '5' => random_int(2000, 4000),
            '6' => random_int(2000, 4000),
            '7' => random_int(2000, 4000),
        ];
        $data = [
            'lastYear' => $data1,
            'thisYear' => $data2
        ];
        $responseJson = [
            'code' => 200,
            'message' => '',
            'data' => $data
        ];
        return response()->json($responseJson);
    }


}
